footer.init();
header.init('发现');

window.onload = function () {
	$('header .back').empty();
	$('footer .found p').addClass('font-active');
	$('footer .found img').attr('src', '../img/icon/found2.png');
	getFounds();
	$('body').on('click', '.fount-item', function () {
		app.open('found.detail.html', 'foundDetail', {
			fid:$(this).attr("data-fid"),
			title:$(this).find("p:eq(0)").text()
		}, window.location.href, document.body.scrollTop);
	});

};
/**
 * 获取发现列表
 */
function getFounds() {
	$.ajax({
		cache:true,
		url: app.link.apiUrl + "/Index/Discovered/lists",
		success: function (res) {
			app.tpl($("#foundList"), "tpl-foundList", res)
		}
	});
	/*   app.ajax({
	 url:"/Index/Discovered/lists",
	 type : 'get'
	 },null,function(res){
	 alert(res);
	 app.tpl($("#foundList"), "tpl-foundList", res)
	 });*/
}